package hesso.smartdraw.ch.model;

import java.util.ArrayList;

public class Installed {

	private int id = 0;
	private String name = "default";
	private int x = 0;
	private int y = 0;
	private int height = 0;
	private int width = 0;
	private Device device = null;
	private ArrayList<Consumation> consumations = new ArrayList<Consumation>();
	
	public Installed(int x, int y, int height, int width){
		this.x = x;
		this.y = y;
		this.height = height;
		this.width = width;
	}
	
	public Installed(){
		
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public Device getDevice() {
		return device;
	}

	public void setDevice(Device device) {
		this.device = device;
	}

	public ArrayList<Consumation> getConsumationArray() {
		return consumations;
	}

	public void setConsumationArray(ArrayList<Consumation> consumations) {
		this.consumations = consumations;
	}
	
	public void addConsumation(Consumation consumation){
		this.consumations.add(consumation);
	}
	
	public void removeConsumation(Consumation consumation){
		this.consumations.remove(consumation);
	}
}